Package org.virus.cvxhull

Source Code of org.virus.cvxhull.Main

package org.virus.cvxhull;

import org.virus.cvxhull.api.Tester;
import org.virus.cvxhull.api.algorithms.ConvexHullAlgorithm;

import javax.swing.*;
import java.lang.reflect.InvocationTargetException;

/**
* Created with IntelliJ IDEA.
* User: VOLT
* Date: 5/30/13
* Time: 10:13 AM
* To change this template use File | Settings | File Templates.
*/
public class Main {

    private static MainFrame mainFrame;

    public static void main(String[] args) throws InvocationTargetException, InterruptedException {
        SwingUtilities.invokeAndWait(new Runnable() {
            @Override
            public void run() {
                mainFrame = new MainFrame();
            }
        });

        for (int i = 0; i < 10000; i++) {
            Tester tester = new Tester(ConvexHullAlgorithm.Algorithm.GIFT_WRAPPING,
                    1000, 1000, 1000, false);
            mainFrame.getPainter().clear();
            tester.test(mainFrame.getPainter());
        }
    }
}
TOP

Related Classes of org.virus.cvxhull.Main

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.